Skip to content

BUG: TypeError in merge with timedelta64 column #13802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Jul 26, 2016

A root cause is isnull raises TypeError if datetime-like has other time unit than ns.

pd.isnull(np.array([1, 2], dtype='datetime64[D]'))
# TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

@sinhrks sinhrks added Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type labels Jul 26, 2016
@sinhrks sinhrks added this to the 0.19.0 milestone Jul 26, 2016
@codecov-io
Copy link

Current coverage is 85.23% (diff: 100%)

Merging #13802 into master will decrease coverage by <.01%

@@             master     #13802   diff @@
==========================================
  Files           140        140          
  Lines         50415      50415          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits          42970      42969     -1   
- Misses         7445       7446     +1   
  Partials          0          0          

Powered by Codecov. Last update 98c5b88...8dbfde2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: TypeError in merge with timedelta64 column
2 participants